package abd.pr1.Controllers;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.sql.DataSource;

import abd.pr1.Interface.AdminWindow;
import abd.pr1.Models.Usuario;

public class AdminWindowController {

	private AdminWindow adminWindow;
	private DataSource ds;
	
	public AdminWindowController(AdminWindow adminWindow,DataSource ds){
		this.adminWindow=adminWindow;
		this.ds=ds;
		this.adminWindow.setAdminActoresPanelActionListener(new AdminActoresPanelController(adminWindow.adminActoresPanel, ds));
		this.adminWindow.setAdminSeriesPanelActionListener(new AdminSeriesPanelController(adminWindow.adminSeriesPanel, ds));
		this.adminWindow.setAdminPersonajesPanelActionListener(new AdminPersonajesPanelController(adminWindow.adminPersonajesPanel,ds));
	}


}
